package cn.anecansaitin.whimsy.client.registers;

import cn.anecansaitin.whimsy.Whimsy;
import cn.anecansaitin.whimsy.client.gui.overlay.DoomfistOverlay;
import cn.anecansaitin.whimsy.client.gui.overlay.ManaOverlay;
import cn.anecansaitin.whimsy.client.gui.overlay.StunOverlay;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.client.event.RegisterGuiOverlaysEvent;
import net.neoforged.neoforge.client.gui.overlay.VanillaGuiOverlay;

@Mod.EventBusSubscriber(modid = Whimsy.MODID, value = Dist.CLIENT, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModOverlay {
    @SubscribeEvent
    public static void overlay(RegisterGuiOverlaysEvent event) {
        event.registerBelow(VanillaGuiOverlay.PORTAL.id(), Whimsy.resource("mana"), new ManaOverlay());
        event.registerBelow(VanillaGuiOverlay.PORTAL.id(), Whimsy.resource("stun"), new StunOverlay());
        event.registerBelow(VanillaGuiOverlay.PORTAL.id(), Whimsy.resource("hand_cannon"), new DoomfistOverlay());
    }
}
